package com.example.util.finallist

import android.os.Build
import android.os.Environment
import com.example.BaseNewApplication

/**
 * 路径常量工具类
 * @author  chaohaipeng  on 2018/7/5.
 */
class PathFinalUtil {
    companion object {


        /**
         * 系统版本是否高于4.4
         */
         val isKitKat = Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT
        /**
         * 缓存根目录
         */
        val PATH_ROOT = (Environment.getExternalStorageDirectory().path
                + "/Android/data/" + BaseNewApplication.getInstance()?.packageName + "/")
        /**
         * 头像路径
         */
        val HEAD_PATH = PATH_ROOT+"cacheImg"
        /**
         * 头像名称
         */
        val HEAD_PATH_NAME = "sk.jpg"

    }

}